package com.qf.model;

//--理财产品信息表
public class Product {
    private Integer p_id;       //理财产品id
    private String p_name;       //产品名称
    private Double p_rate;       //收益利率
    private Integer P_deadline;       //期限      默认：30天
    private Double p_price;       //单价

    public Product() {
    }

    public Product(Integer p_id, String p_name, Double p_rate, Integer p_deadline, Double p_price) {
        this.p_id = p_id;
        this.p_name = p_name;
        this.p_rate = p_rate;
        P_deadline = p_deadline;
        this.p_price = p_price;
    }

    public Integer getP_id() {
        return p_id;
    }

    public void setP_id(Integer p_id) {
        this.p_id = p_id;
    }

    public String getP_name() {
        return p_name;
    }

    public void setP_name(String p_name) {
        this.p_name = p_name;
    }

    public Double getP_rate() {
        return p_rate;
    }

    public void setP_rate(Double p_rate) {
        this.p_rate = p_rate;
    }

    public Integer getP_deadline() {
        return P_deadline;
    }

    public void setP_deadline(Integer p_deadline) {
        P_deadline = p_deadline;
    }

    public Double getP_price() {
        return p_price;
    }

    public void setP_price(Double p_price) {
        this.p_price = p_price;
    }

    @Override
    public String toString() {
        return "Product{" +
                "p_id=" + p_id +
                ", p_name='" + p_name + '\'' +
                ", p_rate=" + p_rate +
                ", P_deadline=" + P_deadline +
                ", p_price=" + p_price +
                '}';
    }
}
